package com.onesports.intelligent.k12.polarlight.domain.vo.common;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 权限树
 * @author Wsy
 **/
@Data
@ApiModel("权限树VO")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class AuthTreeVO {

    @ApiModelProperty("id")
    private String id;

    @ApiModelProperty("父节点")
    private String label;

    @ApiModelProperty("url")
    private String url;

    @ApiModelProperty("icon/系统图片地址")
    private String image;

    @ApiModelProperty("type 0 : 菜单  1：按钮")
    private Integer type;

    @ApiModelProperty("是否页面 0否  1 是")
    private Integer isPage;

    @ApiModelProperty("排序")
    private Long sort;

    private String menuUri;

    @ApiModelProperty("子树")
    private List<AuthTreeVO> children;
}
